import Main from '@/views/Main'
import ParentView from '@/components/main/ParentView'

const moduleRoutes = [
  {
    path: '/system',
    component: Main,
    children: [
      {
        path: 'user',
        component: () => import('@/views/system/user/User.vue')
      },
      {
        path: 'employee',
        component: () => import('@/views/system/employee/Employee.vue')
      },
      {
        path: 'org',
        component: () => import('@/views/system/org/Org.vue')
      },
      {
        path: 'role',
        component: () => import('@/views/system/role/Role.vue')
      },
      {
        path: 'resource',
        component: () => import('@/views/system/resource/Resource.vue')
      },
      {
        path: 'dict',
        component: () => import('@/views/system/dict/Dict.vue')
      },
      {
        path: 'log',
        component: ParentView,
        children: [
          {
            path: 'login',
            component: () => import('@/views/system/log/login/LoginLog.vue')
          },
          {
            path: 'operate',
            component: () => import('@/views/system/log/operate/OperateLog.vue')
          }
        ]
      }
    ]
  }
]

export default moduleRoutes
